package com.ruoyi.system.api.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 课程信息对象 sh_course
 * 
 * @author ruoyi
 * @date 2023-07-18
 */
@Data
public class ShCourse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 课程标题 */
    @Excel(name = "课程标题")
    private String courseTitle;

    /** 课程分类 1培训 2餐饮 3医疗 */
    @Excel(name = "课程分类 1培训 2餐饮 3医疗")
    private Integer courseType;

    /** 课程内容 */
    @Excel(name = "课程内容")
    private String courseContent;

    /** 课程标签关联id(逗号分隔多个标签) */
    private String courseLabel;

    @Excel(name = "课程标签")
    private String labelName;

    /** 浏览量(学习人数) */
    @Excel(name = "浏览量(学习人数)")
    private Long browseNum;

    /** 视频封面(默认视频第一帧作为封面，封面可自定义修改) */
    @Excel(name = "视频封面(默认视频第一帧作为封面，封面可自定义修改)")
    private String videoCover;

    /** 视频链接地址 */
    @Excel(name = "视频链接地址")
    private String videoUrl;

    @Excel(name = "显示类型(1横屏,2竖屏)")
    private Integer showType;

    /** 所属店铺ID */
    @Excel(name = "所属店铺ID")
    private Long shopId;

    /** 教师ID */
    @Excel(name = "教师ID")
    private Long teacherId;

    @Excel(name = "显示顺序")
    private Integer orderNum;

    private String appId;

    private List<Long> teacherIds;
    private List<String> courseLabels;
    private String order;
    private String orderType;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseTitle", getCourseTitle())
            .append("courseType", getCourseType())
            .append("courseContent", getCourseContent())
            .append("courseLabel", getCourseLabel())
            .append("browseNum", getBrowseNum())
            .append("videoCover", getVideoCover())
            .append("videoUrl", getVideoUrl())
            .append("shopId", getShopId())
            .append("teacherId", getTeacherId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
